package cc.wfu.domain.auth.repository;

import cc.wfu.domain.auth.model.entity.AuthCodeEntity;

/**
 * @Author: jia-qiang ljq1024.cc
 * @desc: 权限仓储
 * @Date: 2024-05-16-11:27
 */
public interface IAuthRepository {

    /** 生成验证码 */
    String generateCode(String mail);

    /**
     * 验证验证码
     * @param build 参数： mail,code
     */
    boolean checkCode(AuthCodeEntity build);
}
